/*
* Criado em: 18/02/2009
* Responsavel: junier
*/

package br.com.cept.sce.commons.util;

/*
 * Funcao:  agrupa os retornos do JSF
 */

public enum NavigationOutcomes {
	
	SAIR,
	PRINCIPAL,
	CADASTRAR_USUARIO;
	
		
	/**
	 * @author: junier
	 * metodo toString:
	 * @return 
	 */
	@Override
	public String toString() {
		
		String ret = name();
		ret = ret.toLowerCase();
		String[] words = ret.split("_");
		
		ret = words[0];
		String firstLetter;
		
		for(int i=1; i < words.length; i++) {
			
			firstLetter = String.valueOf((words[i].charAt(0)));
			ret += firstLetter.toUpperCase() + words[i].substring(1);
		}
		
		return ret;
	}

}
